package edu.aysf.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

// account-service 需要在hosts配置
@FeignClient(name = "account-service",url = "http://localhost:8083")
public interface AccountServiceFeign {
    // 更新账户
    @RequestMapping("/account/update")
//    int updateAccount(int id,float user_money);
    int updateAccount(@RequestBody Map<String, Object> map);

    // 查询账户金额
    @RequestMapping("/account/select/money")
    float selectMoney(@RequestBody Map<String, Object> map);
}

